<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\RiskOrder
 *
 * @property int $id
 * @property int|null $orderid 订单ID
 * @property string|null $ordersn 订单号
 * @property string|null $id_name 身份证姓名
 * @property string|null $id_card 身份证
 * @property int|null $status 状态
 * @property int|null $risk_rules_id 命中风控ID
 * @property string|null $sys 三要素
 * @property string|null $sjzwzt 手机在网状态
 * @property string|null $fyxxxqfjb 信息验证规则-法院信息详情个人高级版
 * @property string|null $jdyx 借贷
 * @property string|null $tsmd 特殊名单
 * @property string|null $fxsb 风险哨兵
 * @property string|null $data 数据
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereData($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereFxsb($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereFyxxxqfjb($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereIdCard($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereIdName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereJdyx($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereOrderid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereOrdersn($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereRiskRulesId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereSjzwzt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereSys($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereTsmd($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property string|null $mobile 手机号
 * @property float|null $money 金额
 * @property int|null $dengji 等级
 * @property string|null $gzmc 规则名称
 * @property string|null $dengji_ali 智租等级
 * @property int|null $rule_ali_id 规则ID
 * @property string|null $data_ali 智租数据
 * @property string|null $xaidan_at 下单时间
 * @property int|null $is_curtail 缩减接口 1缩减成功 9缩减失败
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereDataAli($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereDengji($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereDengjiAli($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereGzmc($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereIsCurtail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereMobile($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereRuleAliId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereXaidanAt($value)
 * @property string|null $openid
 * @method static \Illuminate\Database\Eloquent\Builder|\App\RiskOrder whereOpenid($value)
 */
class RiskOrder extends Model
{
    protected $table = 'risk_order';

    const STATUS_MAP = [
        1 => '风控源问题',
        2 => '待处理',
        3 => '已处理'
    ];

}
